package com.hospital.workstation.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.workstation.domain.MedicationSummary;
import com.hospital.workstation.domain.vo.MedicationSummaryVo;
import com.hospital.common.core.mapper.BaseMapperPlus;
import com.hospital.workstation.domain.vo.StatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 药历小结信息Mapper接口
 *
 * @author hospital
 * @date 2023-02-16
 */
public interface MedicationSummaryMapper extends BaseMapperPlus<MedicationSummaryMapper, MedicationSummary, MedicationSummaryVo> {
    /**
     * 分页查询工作量统计
     *
     * @param build
     * @param buildQueryWrapper
     * @return
     */
    Page<StatisticsVo> queryWorkload(@Param("page") Page<Object> build, @Param(Constants.WRAPPER) Wrapper<MedicationSummary> buildQueryWrapper);

    /**
     * 查询工作量统计
     *
     * @param buildQueryWrapper
     * @return
     */
    List<StatisticsVo> queryWorkloadList(@Param(Constants.WRAPPER) Wrapper<MedicationSummary> buildQueryWrapper);
}
